<?php
$tdatapack_uoms=array();
	$tdatapack_uoms[".NumberOfChars"]=80; 
	$tdatapack_uoms[".ShortName"]="pack_uoms";
	$tdatapack_uoms[".OwnerID"]="";
	$tdatapack_uoms[".OriginalTable"]="pack_uoms";


	
//	field labels
$fieldLabelspack_uoms = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelspack_uoms["English"]=array();
	$fieldToolTipspack_uoms["English"]=array();
	$fieldLabelspack_uoms["English"]["id"] = "Id";
	$fieldToolTipspack_uoms["English"]["id"] = "";
	$fieldLabelspack_uoms["English"]["uom_name"] = "Uom Name";
	$fieldToolTipspack_uoms["English"]["uom_name"] = "";
	$fieldLabelspack_uoms["English"]["uom_code"] = "Uom Code";
	$fieldToolTipspack_uoms["English"]["uom_code"] = "";
	if (count($fieldToolTipspack_uoms["English"])){
		$tdatapack_uoms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelspack_uoms["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipspack_uoms["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelspack_uoms["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipspack_uoms["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelspack_uoms["Chinese (Hong Kong S.A.R.)"]["uom_name"] = "Uom Name";
	$fieldToolTipspack_uoms["Chinese (Hong Kong S.A.R.)"]["uom_name"] = "";
	$fieldLabelspack_uoms["Chinese (Hong Kong S.A.R.)"]["uom_code"] = "Uom Code";
	$fieldToolTipspack_uoms["Chinese (Hong Kong S.A.R.)"]["uom_code"] = "";
	if (count($fieldToolTipspack_uoms["Chinese (Hong Kong S.A.R.)"])){
		$tdatapack_uoms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelspack_uoms["Chinese (Taiwan)"]=array();
	$fieldToolTipspack_uoms["Chinese (Taiwan)"]=array();
	$fieldLabelspack_uoms["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipspack_uoms["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelspack_uoms["Chinese (Taiwan)"]["uom_name"] = "Uom Name";
	$fieldToolTipspack_uoms["Chinese (Taiwan)"]["uom_name"] = "";
	$fieldLabelspack_uoms["Chinese (Taiwan)"]["uom_code"] = "Uom Code";
	$fieldToolTipspack_uoms["Chinese (Taiwan)"]["uom_code"] = "";
	if (count($fieldToolTipspack_uoms["Chinese (Taiwan)"])){
		$tdatapack_uoms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelspack_uoms["French"]=array();
	$fieldToolTipspack_uoms["French"]=array();
	$fieldLabelspack_uoms["French"]["id"] = "Id";
	$fieldToolTipspack_uoms["French"]["id"] = "";
	$fieldLabelspack_uoms["French"]["uom_name"] = "Uom Name";
	$fieldToolTipspack_uoms["French"]["uom_name"] = "";
	$fieldLabelspack_uoms["French"]["uom_code"] = "Uom Code";
	$fieldToolTipspack_uoms["French"]["uom_code"] = "";
	if (count($fieldToolTipspack_uoms["French"])){
		$tdatapack_uoms[".isUseToolTips"]=true;
	}
}


	
	$tdatapack_uoms[".NCSearch"]=true;

	

$tdatapack_uoms[".shortTableName"] = "pack_uoms";
$tdatapack_uoms[".nSecOptions"] = 0;
$tdatapack_uoms[".recsPerRowList"] = 1;	
$tdatapack_uoms[".tableGroupBy"] = "0";
$tdatapack_uoms[".mainTableOwnerID"] = "";
$tdatapack_uoms[".moveNext"] = 1;




$tdatapack_uoms[".showAddInPopup"] = false;

$tdatapack_uoms[".showEditInPopup"] = false;

$tdatapack_uoms[".showViewInPopup"] = false;


$tdatapack_uoms[".fieldsForRegister"] = array();

$tdatapack_uoms[".listAjax"] = true;

	$tdatapack_uoms[".audit"] = false;

	$tdatapack_uoms[".locking"] = false;
	
$tdatapack_uoms[".listIcons"] = true;
$tdatapack_uoms[".edit"] = true;
$tdatapack_uoms[".inlineEdit"] = true;
$tdatapack_uoms[".view"] = true;

$tdatapack_uoms[".exportTo"] = true;

$tdatapack_uoms[".printFriendly"] = true;

$tdatapack_uoms[".delete"] = true;

$tdatapack_uoms[".showSimpleSearchOptions"] = true;

$tdatapack_uoms[".showSearchPanel"] = true;


$tdatapack_uoms[".isUseAjaxSuggest"] = true;

$tdatapack_uoms[".rowHighlite"] = true;


// button handlers file names

$tdatapack_uoms[".addPageEvents"] = false;

$tdatapack_uoms[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatapack_uoms[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatapack_uoms[".isUseTimeForSearch"] = false;

$tdatapack_uoms[".isUseiBox"] = false;


$tdatapack_uoms[".useDetailsPreview"] = true;	

$tdatapack_uoms[".isUseInlineAdd"] = true;

$tdatapack_uoms[".isUseInlineEdit"] = true;
$tdatapack_uoms[".isUseInlineJs"] = $tdatapack_uoms[".isUseInlineAdd"] || $tdatapack_uoms[".isUseInlineEdit"];

$tdatapack_uoms[".allSearchFields"] = array();

$tdatapack_uoms[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapack_uoms[".allSearchFields"]))
{
	$tdatapack_uoms[".allSearchFields"][] = "id";	
}
$tdatapack_uoms[".globSearchFields"][] = "uom_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_name", $tdatapack_uoms[".allSearchFields"]))
{
	$tdatapack_uoms[".allSearchFields"][] = "uom_name";	
}
$tdatapack_uoms[".globSearchFields"][] = "uom_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_code", $tdatapack_uoms[".allSearchFields"]))
{
	$tdatapack_uoms[".allSearchFields"][] = "uom_code";	
}


$tdatapack_uoms[".googleLikeFields"][] = "id";
$tdatapack_uoms[".googleLikeFields"][] = "uom_name";
$tdatapack_uoms[".googleLikeFields"][] = "uom_code";



$tdatapack_uoms[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapack_uoms[".allSearchFields"])) 
{
	$tdatapack_uoms[".allSearchFields"][] = "id";	
}
$tdatapack_uoms[".advSearchFields"][] = "uom_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_name", $tdatapack_uoms[".allSearchFields"])) 
{
	$tdatapack_uoms[".allSearchFields"][] = "uom_name";	
}
$tdatapack_uoms[".advSearchFields"][] = "uom_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_code", $tdatapack_uoms[".allSearchFields"])) 
{
	$tdatapack_uoms[".allSearchFields"][] = "uom_code";	
}

$tdatapack_uoms[".isTableType"] = "list";


	

$tdatapack_uoms[".isDisplayLoading"] = true;

$tdatapack_uoms[".isResizeColumns"] = false;

	$tdatapack_uoms[".subQueriesSupAccess"] = true;




$tdatapack_uoms[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatapack_uoms[".strOrderBy"] = $gstrOrderBy;
	
$tdatapack_uoms[".orderindexes"] = array();

$tdatapack_uoms[".sqlHead"] = "SELECT id,   uom_name,   uom_code";
$tdatapack_uoms[".sqlFrom"] = "FROM pack_uoms";
$tdatapack_uoms[".sqlWhereExpr"] = "";
$tdatapack_uoms[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatapack_uoms[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatapack_uoms[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatapack_uoms[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "pack_uoms";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapack_uoms["id"]=$fdata;
//	uom_name
	$fdata = array();
	$fdata["strName"] = "uom_name";
	$fdata["ownerTable"] = "pack_uoms";
		$fdata["Label"]="Uom Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "uom_name";
	
		$fdata["FullName"]= "uom_name";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapack_uoms["uom_name"]=$fdata;
//	uom_code
	$fdata = array();
	$fdata["strName"] = "uom_code";
	$fdata["ownerTable"] = "pack_uoms";
		$fdata["Label"]="Uom Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "uom_code";
	
		$fdata["FullName"]= "uom_code";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapack_uoms["uom_code"]=$fdata;

	
$tables_data["pack_uoms"]=&$tdatapack_uoms;
$field_labels["pack_uoms"] = &$fieldLabelspack_uoms;
$fieldToolTips["pack_uoms"] = &$fieldToolTipspack_uoms;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["pack_uoms"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="uoms";
	$detailsTablesData["pack_uoms"][$dIndex] = array(
		  "dDataSourceTable"=>"uoms"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"uoms"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT id,   uom_name,   uom_code,   pack_uom_id"	
		, "sqlFrom"=>"FROM uoms"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$detailsTablesData["pack_uoms"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["pack_uoms"][$dIndex]["detailKeys"][]="pack_uom_id";


	
// tables which are master tables for current table (detail)
$masterTablesData["pack_uoms"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto543=array();
$proto543["m_strHead"] = "SELECT";
$proto543["m_strFieldList"] = "id,   uom_name,   uom_code";
$proto543["m_strFrom"] = "FROM pack_uoms";
$proto543["m_strWhere"] = "";
$proto543["m_strOrderBy"] = "";
$proto543["m_strTail"] = "";
$proto544=array();
$proto544["m_sql"] = "";
$proto544["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto544["m_column"]=$obj;
$proto544["m_contained"] = array();
$proto544["m_strCase"] = "";
$proto544["m_havingmode"] = "0";
$proto544["m_inBrackets"] = "0";
$proto544["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto544);

$proto543["m_where"] = $obj;
$proto546=array();
$proto546["m_sql"] = "";
$proto546["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto546["m_column"]=$obj;
$proto546["m_contained"] = array();
$proto546["m_strCase"] = "";
$proto546["m_havingmode"] = "0";
$proto546["m_inBrackets"] = "0";
$proto546["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto546);

$proto543["m_having"] = $obj;
$proto543["m_fieldlist"] = array();
						$proto548=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "pack_uoms"
));

$proto548["m_expr"]=$obj;
$proto548["m_alias"] = "";
$obj = new SQLFieldListItem($proto548);

$proto543["m_fieldlist"][]=$obj;
						$proto550=array();
			$obj = new SQLField(array(
	"m_strName" => "uom_name",
	"m_strTable" => "pack_uoms"
));

$proto550["m_expr"]=$obj;
$proto550["m_alias"] = "";
$obj = new SQLFieldListItem($proto550);

$proto543["m_fieldlist"][]=$obj;
						$proto552=array();
			$obj = new SQLField(array(
	"m_strName" => "uom_code",
	"m_strTable" => "pack_uoms"
));

$proto552["m_expr"]=$obj;
$proto552["m_alias"] = "";
$obj = new SQLFieldListItem($proto552);

$proto543["m_fieldlist"][]=$obj;
$proto543["m_fromlist"] = array();
												$proto554=array();
$proto554["m_link"] = "SQLL_MAIN";
			$proto555=array();
$proto555["m_strName"] = "pack_uoms";
$proto555["m_columns"] = array();
$proto555["m_columns"][] = "id";
$proto555["m_columns"][] = "uom_name";
$proto555["m_columns"][] = "uom_code";
$obj = new SQLTable($proto555);

$proto554["m_table"] = $obj;
$proto554["m_alias"] = "";
$proto556=array();
$proto556["m_sql"] = "";
$proto556["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto556["m_column"]=$obj;
$proto556["m_contained"] = array();
$proto556["m_strCase"] = "";
$proto556["m_havingmode"] = "0";
$proto556["m_inBrackets"] = "0";
$proto556["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto556);

$proto554["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto554);

$proto543["m_fromlist"][]=$obj;
$proto543["m_groupby"] = array();
$proto543["m_orderby"] = array();
$obj = new SQLQuery($proto543);

$queryData_pack_uoms = $obj;
$tdatapack_uoms[".sqlquery"] = $queryData_pack_uoms;

$tableEvents["pack_uoms"] = new eventsBase;

?>
